﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BattleThis.Core;

namespace BattleThis.Mvc
{
	/// <summary>
	/// Controller for in game actions.
	/// </summary>
	[IsInGame()]
	[Authorize()]
	public abstract class InGameControllerAbstract : Controller
	{

		#region Variablen 
		#endregion

		#region Properties  

		/// <summary>
		/// Gets the game context.
		/// </summary>
		public GameContext GameContext
		{
			get{ return this.HttpContext.GetGameContext(); }
		}

		/// <summary>
		/// Gets the game.
		/// </summary>
		public Game Game
		{
			get { return this.GameContext.CurrentGame;}
		}

		/// <summary>
		/// Gets the widgets.
		/// </summary>
		public List<IWidget> Widgets
		{
			get { return this.HttpContext.GetWidgets(); }
		}

		#endregion

		#region Methoden  
		#endregion
	}
}